import React, { Component } from 'react';
import {NavLink, Route} from 'react-router-dom';
import Singer from '../Singer';
import New from '../New';

export default class Home extends Component {
    render() {
        return (
            <div className="home-nav"> 
                <ul>
                    <li><NavLink to="/home/singer">歌手</NavLink></li>
                    <li><NavLink to="/home/new">新碟</NavLink></li>
                </ul>
                <div style={{clear:'both'}}></div>

                <Route path="/home/singer" component={Singer}></Route>
                <Route path="/home/new" component={New}></Route>
            </div>
        )
    }
}
